import request from '@/utils/request'

// 查询轮播图配置列表
export function listRetirementCarousel(query) {
  return request({
    url: '/retirement/retirementCarousel/list',
    method: 'get',
    params: query
  })
}

// 查询轮播图配置详细
export function getRetirementCarousel(id) {
  return request({
    url: '/retirement/retirementCarousel/' + id,
    method: 'get'
  })
}

// 新增轮播图配置
export function addRetirementCarousel(data) {
  return request({
    url: '/retirement/retirementCarousel',
    method: 'post',
    data: data
  })
}

// 修改轮播图配置
export function updateRetirementCarousel(data) {
  return request({
    url: '/retirement/retirementCarousel',
    method: 'put',
    data: data
  })
}

// 删除轮播图配置
export function delRetirementCarousel(id) {
  return request({
    url: '/retirement/retirementCarousel/' + id,
    method: 'delete'
  })
}
